<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<title>帐号中心</title>
<link href="https://hwid1.vmallres.com/CAS/up/common/images/default/hwfavicon.ico" type="image/x-icon" rel="shortcut icon"> 
<link href="{{ asset('home/css/ec.core.css') }}" rel="stylesheet" type="text/css"> 
<link href="{{ asset('home/css/common.css') }}" rel="stylesheet" type="text/css"> 
<link href="{{ asset('home/css/zh-cn_css.css') }}" rel="stylesheet" type="text/css"> 
<link href="{{ asset('home/css/dialog.css') }}" rel="stylesheet" type="text/css"> 
<script type="text/javascript">var localHttps="https://hwid1.vmall.com/CAS";var currentSiteID="1";</script>
<script src="{{ asset('home/js/jsapi.js') }}" namespace="ec"></script>
<script src="{{ asset('home/js/jquery-1.8.2.min.js') }}" id="jsid"></script>
<script src="{{ asset('home/js/ec.core.js') }}"></script>
<script src="{{ asset('home/js/casui.js') }}"></script>
<script src="{{ asset('home/js/ec.business.js') }}"></script> 
<script src="{{ asset('home/js/commonjs.js') }}"></script>
<script src="{{ asset('home/js/ajaxupload.3.6.js') }}"></script>
<script src="{{ asset('home/js/jquery.Jcrop.min.js') }}"></script>
<script src="{{ asset('home/js/jquery-ui.min.js') }}"></script>
<link href="{{ asset('home/css/jquery-ui.min.css') }}" rel="stylesheet" type="text/css"> 
<link href="{{ asset('home/css/dialog.css') }}" rel="stylesheet" type="text/css"> 
<link href="{{ asset('home/css/jquery.cascrop.css') }}" rel="stylesheet" type="text/css"> 
<script src="{{ asset('home/js/uc_base.js') }}"></script>
<script src="{{ asset('home/js/casui.js') }}"></script>
<script src="{{ asset('home/js/area.js') }}"></script>
<script src="{{ asset('home/js/pwd.js') }}"></script>
<script src="{{ asset('home/js/jquery.cascrop.js') }}"></script>
<script src="{{ asset('home/js/userInfo.js') }}"></script>
</head>
<body>
	<div class="topbar">
		<div class="tp wp mkcl">
			<div class="tbr">	
				<b class="user"></b>
            	@foreach ($list as $vi)
					<a class="account" href="#">{{ $vi->userName }}</a>
				@break
				@endforeach
				<span> | </span>
				<a id="logoutUrl" href="{{ asset('/') }}">首页</a>
			</div>			
		</div>				
	</div>
	<div class="menu wp mkcl">
		<div class="mnr">
			<ul class="nav mkcl">
				<li data-menu="2" class="sel"><a href="/pass">修改密码</a></li>
				
			</ul>
			<b class="navsign" style="display:none"></b>
		</div>
		
		<div class="main-logo" style="position:relative;">
			<div class="childLogo">		      		    
		    	<img src="{{ asset('/home/img/HUAWEI.png') }}">		
			</div>
			
			<div class="left"> 
			  <span class="logo_text">帐号中心</span>
			</div>			
		</div>
	</div>

	<div class="wp">
		<div class="pannel">
            @foreach ($list as $v)

			<form action="/info/{{ $v->userId }}" method="post" enctype='multipart/form-data'>
                {{ csrf_field() }}
                {{ method_field('PUT') }}
                <div class="upic">
				<a href="#"><img id="headPic" src="{{ $v->userImg }}" width="160px" height:"160px"="" onerror="loadDefaultPic(this);" orginsrc="https://hwid1.vmallres.com/CAS/up/rss_6/css/portal/userCenter_rss/blue/images/pic.png?20161109"></a>
			</div>
				<div class="umsg">
					@if (count($errors) > 0)
			          	<div class="alert alert-danger">
			              <ul>
			                  @foreach ($errors->all() as $error)
			                      <li>{{ $error }}</li>
			                  @endforeach
			            </ul>
			            </div>
			        @endif
					<p class="title">编辑个人信息</p>

					<p class="line">
						昵称：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<span class="uinfo"><input type="text" name="userName" value="{{ session('user')->userName }}" disabled="disabled"></span>
				    </p>
				   <!--  <p class="line">			      							
						真实姓名：			
						<span class="uinfo"><label id="forumNickname">
							<input type="text" name="userReal">	
						</label></span>	
				    </p> -->			    
					<p class="line">
						性别：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<span class="uinfo">
							<input type="radio" name="userSex" value="1" checked="checked">男
							<input type="radio" name="userSex" value="2">女
						</span>
					</p>
					<p class="line">
					  	邮箱：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					  	<span class="uinfo"><input type="email" name="userEmail" value="{{ $v->userEmail }}"></span>
					</p>
					<p class="line">
					  	手机号：&nbsp;&nbsp;&nbsp;&nbsp;
					  	<span class="uinfo"><input type="text" name="userTel" value="{{ $v->userTel }}"></span>
					</p>
					<p class="line">
					  	编辑头像：&nbsp;
               			<span class="uinfo"><input type='file' name='userImg'></span>
					</p>
					<p class="line">
					  	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<span class="uinfo"><input type="submit" value="确认修改"></span>					  	
					</p>
					
				</div>
			</form>
				@endforeach

		</div>
	</div>


<script>

ec.ready(function() {
	 init();
});

function init()
{
	window.localInfo.nickName = "";
	window.localInfo.forumNickName="huafans01207313135";
	window.localInfo.gender = "-1";
	window.localInfo.province = "";
	window.localInfo.city = "";
	window.localInfo.formatBirthDate = "";
	window.localInfo.birthDate= "";
	
	$("#nickname").html(window.localInfo.nickName);
	$("#forumNickname").html(window.localInfo.forumNickName);
	displayGender(window.localInfo.gender);
	var city = window.localInfo.province+window.localInfo.city;
	$("#cityarea").text(city);
	$("#birthday").text(window.localInfo.formatBirthDate);

};
</script>

<!-- 底部  -->
<div class="wp ft">
	<p>			
		<a href="https://hwid1.vmall.com/CAS/portal/agreements/userPrivacyPolicy/zh-cn_userPrivacyPolicy.html?version=europe" class="rule" target="_blank">华为隐私政策</a>
		<a href="https://hwid1.vmall.com/CAS/portal/agreements/EULA/zh-cn_EULA.html?version=china" class="rule" target="_blank">华为帐号用户协议</a>
		<em class="foot_em">|</em>
		<a href="https://hwid1.vmall.com/CAS/portal/faq/faq.html" class="ifaq" target="_blank">常见问题</a>			
	</p>
	<p>Copyright©2011-2016    华为技术有限公司   版权所有   保留一切权利</p>
	<p>苏B2-20070200号           |           苏ICP备09062682号-9</p>			
</div>

</body>
</html>